// 一站办-老年人能力评估记录

// 动态大类-(对应评估管理（新国标）)
const dynamicClasses = (request) => {
	return {
		// 提交老人能力评估
		view_bscElderlyAssessBaseInfo_calc(query = {}) {
			return request(`/application/bscElderlyAssessBaseInfo/calc`, {
				method: 'post',
				data: query,
			})
		},
		// web端机构等级提交评估
		view_serviceOrgAccess_update(query = {}) {
			return request(`/application/bscTaskItem/updateServiceOrgAccess`, {
				method: 'post',
				data: query,
			})
		},
		// 提交评估
		view_bscTaskItem_submit(query = {}) {
			return request(`/application/bscTaskItem/submit`, {
				method: 'post',
				data: query,
			})
		},
		// 增加
		view_bscAssessTableInfo_add(query = {}) {
			return request(`/application/bscAssessTableInfo/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscAssessTableInfo_page(query = {}) {
			return request(`/application/bscAssessTableInfo/page`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页查询
		view_bscAssessTableInfo_list(query = {}) {
			return request(`/application/bscAssessTableInfo/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscAssessTableInfo_edit(query = {}) {
			return request(`/application/bscAssessTableInfo/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscAssessTableInfo_view(id) {
			return request(`/application/bscAssessTableInfo/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscAssessTableInfo_del(ids) {
			return request(`/application/bscAssessTableInfo/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 机构等级评估答案添加和修改
		view_bscAssessTableAnswer_addOrUpdateAnswer(data) {
			return request(`/application/bscAssessTableAnswer/addOrUpdateAnswer`, {
				method: 'post',
				data,
			})
		},
		// 老人能力评估答案添加和修改
		view_bscAssessTableAnswer_addOrUpdate(data) {
			return request(`/application/bscAssessTableAnswer/addOrUpdate`, {
				method: 'post',
				data,
			})
		},
		// 老人基础评估信息中的4张表的分数数据
		view_bscElderlyAssessBaseInfo_assessTablesTotalScore(data) {
			return request(`/application/bscElderlyAssessBaseInfo/assessTablesTotalScore`, {
				method: 'post',
				data,
			})
		},
	}
}
// 动态表项目-（动态表格-标题）

const dynamicTableItems = (request) => {
	return {
		// 增加
		view_bscAssessTableItem_add(query = {}) {
			return request(`/application/bscAssessTableItem/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscAssessTableItem_page(query = {}) {
			return request(`/application/bscAssessTableItem/page`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页获取列表
		view_bscAssessTableItem_list(query = {}) {
			return request(`/application/bscAssessTableItem/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscAssessTableItem_edit(query = {}) {
			return request(`/application/bscAssessTableItem/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscAssessTableItem_view(id) {
			return request(`/application/bscAssessTableItem/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscAssessTableItem_del(ids) {
			return request(`/application/bscAssessTableItem/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
	}
}
// 动态表项目的答案-（评估表用户答案控制）
const dynamicTableItemAnswer = (request) => {
	return {
		// 增加
		view_bscAssessTableOption_add(query = {}) {
			return request(`/application/bscAssessTableOption/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscAssessTableOption_page(query = {}) {
			return request(`/application/bscAssessTableOption/page`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页获取列表
		view_bscAssessTableOption_list(query = {}) {
			return request(`/application/bscAssessTableOption/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscAssessTableOption_edit(query = {}) {
			return request(`/application/bscAssessTableOption/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscAssessTableOption_view(id) {
			return request(`/application/bscAssessTableOption/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscAssessTableOption_del(ids) {
			return request(`/application/bscAssessTableOption/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
	}
}
// 评估记录
const evaluateRecords = (request) => {
	return {
		// 增加
		view_bscElderlyAssessBaseInfo_add(query = {}) {
			return request(`/application/bscElderlyAssessBaseInfo/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscElderlyAssessBaseInfo_page(query = {}) {
			return request(`/application/bscElderlyAssessBaseInfo/pageWeb`, {
				method: 'post',
				data: query,
			})
		},
		// 导出
		view_bscElderlyAssessBaseInfo_exportTable(query = {}) {
			return request(`/application/bscElderlyAssessBaseInfo/exportTable`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 不分页获取列表
		view_bscElderlyAssessBaseInfo_list(query = {}) {
			return request(`/application/bscElderlyAssessBaseInfo/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscElderlyAssessBaseInfo_edit(query = {}) {
			return request(`/application/bscElderlyAssessBaseInfo/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscElderlyAssessBaseInfo_view(id) {
			return request(`/application/bscElderlyAssessBaseInfo/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscElderlyAssessBaseInfo_del(ids) {
			return request(`/application/bscElderlyAssessBaseInfo/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
	}
}

//  机构等级评定
const institutionalRating = (request) => {
	return {
		// 增加
		view_bscServiceOrgAssess_add(query = {}) {
			return request(`/application/bscServiceOrgAssess/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscServiceOrgAssess_page_pc(query = {}) {
			return request(`/application/bscServiceOrgAssess/pagePc`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页获取列表
		view_bscServiceOrgAssess_list(query = {}) {
			return request(`/application/bscServiceOrgAssess/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscServiceOrgAssess_edit(query = {}) {
			return request(`/application/bscServiceOrgAssess/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscServiceOrgAssess_view(id) {
			return request(`/application/bscServiceOrgAssess/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscServiceOrgAssess_del(ids) {
			return request(`/application/bscServiceOrgAssess/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
	}
}
const taskInfo = (request) => {
	return {
		// 增加
		view_bscTaskInfo_add(query = {}) {
			return request(`/application/bscTaskInfo/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscTaskInfo_page(query = {}) {
			return request(`/application/bscTaskInfo/page`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页获取列表
		view_bscTaskInfo_list(query = {}) {
			return request(`/application/bscTaskInfo/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscTaskInfo_edit(query = {}) {
			return request(`/application/bscTaskInfo/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscTaskInfo_view(id) {
			return request(`/application/bscTaskInfo/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscTaskInfo_del(ids) {
			return request(`/application/bscTaskInfo/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 导出为excel
		view_export_excel(query = {}) {
			return request(`/nxjudge/ningxiang/index/report`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导出为word
		view_export_word(query = {}) {
			return request(`/nxjudge/ningxiang/index/word`, {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}
// 考核任务发布
const bscExamineTask = (request) => {
	return {
		// 增加
		view_bscExamineTask_add(query = {}) {
			return request(`/application/bscExamineTask/add`, {
				method: 'post',
				data: query,
			})
		},
		// 分页获取列表
		view_bscExamineTask_page(query = {}) {
			return request(`/application/bscExamineTask/page`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页获取列表
		view_bscExamineTask_list(query = {}) {
			return request(`/application/bscExamineTask/list`, {
				method: 'post',
				data: query,
			})
		},
		// 编辑
		view_bscExamineTask_edit(query = {}) {
			return request(`/application/bscExamineTask/edit`, {
				method: 'post',
				data: query,
			})
		},
		// 通过id查看详情
		view_bscExamineTask_view(id) {
			return request(`/application/bscExamineTask/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscExamineTask_del(ids) {
			return request(`/application/bscExamineTask/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
	}
}
const bscAssessTableAnswer = (request) => {
	return {
		// 查询用户评估表项目选项答案表列表
		view_bscAssessTableAnswer_list(query = {}) {
			return request(`/application/bscAssessTableAnswer/list`, {
				method: 'post',
				data: query,
			})
		},
	}
}
// 考核记录
const bscExamineUserRecord = (request) => {
	return {
		// 分页查询
		view_bscExamineUserRecord_page(query = {}) {
			return request(`/application/bscExamineUserRecord/page`, {
				method: 'post',
				data: query,
			})
		},
		// 查看详情
		view_bscExamineUserRecord_view(id) {
			return request(`/application/bscExamineUserRecord/${id}`, {
				method: 'get',
			})
		},
		// 通过id删除
		view_bscExamineUserRecord_del(ids) {
			return request(`/application/bscExamineUserRecord/del`, {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 不分页查询正式的关联题目
		view_bscExamineTaskItem_list(query = {}) {
			return request(`/application/bscExamineTaskItem/list`, {
				method: 'post',
				data: query,
			})
		},
		// 不分页查询模拟的关联题目
		view_bscExamineImitateItem_list(query = {}) {
			return request(`/application/bscExamineImitateItem/list`, {
				method: 'post',
				data: query,
			})
		},
	}
}
// 数据统计
const bscStatistics = (request) => {
	return {
		// 待办事项业务处理
		view_bscStatistics_businessProcess(query = {}) {
			return request(`/application/bscStatistics/businessProcess`, {
				method: 'post',
				data: query,
			})
		},
		// 业务办理
		view_bscStatistics_businessProcessing(query = {}) {
			return request(`/application/bscStatistics/businessProcessing`, {
				method: 'post',
				data: query,
			})
		},
		// 评估数据
		view_bscStatistics_evaluationData(query = {}) {
			return request(`/application/bscStatistics/evaluationData`, {
				method: 'post',
				data: query,
			})
		},
		// 进行中考试任务
		view_bscStatistics_examineTaskRecord(query = {}) {
			return request(`/application/bscStatistics/examineTaskRecord`, {
				method: 'post',
				data: query,
			})
		},
		// 我的工单
		view_bscStatistics_myServiceOrder(query = {}) {
			return request(`/application/bscStatistics/myServiceOrder`, {
				method: 'post',
				data: query,
			})
		},
		// 待办事项在线点单
		view_bscStatistics_orderOnline(query = {}) {
			return request(`/application/bscStatistics/orderOnline`, {
				method: 'post',
				data: query,
			})
		},
		// 从业人员
		view_bscStatistics_practitioners(query = {}) {
			return request(`/application/bscStatistics/practitioners`, {
				method: 'post',
				data: query,
			})
		},
		// 服务对象
		view_bscStatistics_serviceObject(query = {}) {
			return request(`/application/bscStatistics/serviceObject`, {
				method: 'post',
				data: query,
			})
		},
		// 服务工单
		view_bscStatistics_serviceOrder(query = {}) {
			return request(`/application/bscStatistics/serviceOrder`, {
				method: 'post',
				data: query,
			})
		},
		// 进行中技能培训
		view_bscStatistics_skillTraining(query = {}) {
			return request(`/application/bscStatistics/skillTraining`, {
				method: 'post',
				data: query,
			})
		},
		// 下发的考试
		view_bscExamineTaskRecord_list(query = {}) {
			return request(`/application/bscExamineTaskRecord/list`, {
				method: 'post',
				data: query,
			})
		},
		// 一站办养老政策列表
		view_dpPolicyDocumentBsc_viewWeb(query = {}) {
			return request(`/application/dpPolicyDocumentBsc/pageWeb`, {
				method: 'post',
				data: query,
			})
		},
		view_dpPolicyDocumentBsc_view(id) {
			return request(`/application/dpPolicyDocumentBsc/${id}`, {
				method: 'get',
			})
		},
		// 我的任务
		view_bscTaskItem_page(query = {}) {
			return request(`/application/bscTaskItem/page`, {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dynamicClasses(request),
	...dynamicTableItems(request),
	...evaluateRecords(request),
	...dynamicTableItemAnswer(request),
	...institutionalRating(request),
	...taskInfo(request),
	...bscExamineTask(request),
	...bscAssessTableAnswer(request),
	...bscExamineUserRecord(request),
	...bscStatistics(request),
})
